home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMPlugin.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  5KB  |  150 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMPlugin.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMPlugin_h__
  6. #define __gen_nsIDOMPlugin_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMPlugin */
  19. #define NS_IDOMPLUGIN_IID_STR "f6134681-f28b-11d2-8360-c90899049c3c"
  20.  
  21. #define NS_IDOMPLUGIN_IID \
  22.   {0xf6134681, 0xf28b, 0x11d2, \
  23.     { 0x83, 0x60, 0xc9, 0x08, 0x99, 0x04, 0x9c, 0x3c }}
  24.  
  25. class NS_NO_VTABLE nsIDOMPlugin : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMPLUGIN_IID)
  29.  
  30.   /* readonly attribute DOMString description; */
  31.   NS_IMETHOD GetDescription(nsAString & aDescription) = 0;
  32.  
  33.   /* readonly attribute DOMString filename; */
  34.   NS_IMETHOD GetFilename(nsAString & aFilename) = 0;
  35.  
  36.   /* readonly attribute DOMString name; */
  37.   NS_IMETHOD GetName(nsAString & aName) = 0;
  38.  
  39.   /* readonly attribute unsigned long length; */
  40.   NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
  41.  
  42.   /* nsIDOMMimeType item (in unsigned long index); */
  43.   NS_IMETHOD Item(PRUint32 index, nsIDOMMimeType **_retval) = 0;
  44.  
  45.   /* nsIDOMMimeType namedItem (in DOMString name); */
  46.   NS_IMETHOD NamedItem(const nsAString & name, nsIDOMMimeType **_retval) = 0;
  47.  
  48. };
  49.  
  50. /* Use this macro when declaring classes that implement this interface. */
  51. #define NS_DECL_NSIDOMPLUGIN \
  52.   NS_IMETHOD GetDescription(nsAString & aDescription); \
  53.   NS_IMETHOD GetFilename(nsAString & aFilename); \
  54.   NS_IMETHOD GetName(nsAString & aName); \
  55.   NS_IMETHOD GetLength(PRUint32 *aLength); \
  56.   NS_IMETHOD Item(PRUint32 index, nsIDOMMimeType **_retval); \
  57.   NS_IMETHOD NamedItem(const nsAString & name, nsIDOMMimeType **_retval); 
  58.  
  59. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  60. #define NS_FORWARD_NSIDOMPLUGIN(_to) \
  61.   NS_IMETHOD GetDescription(nsAString & aDescription) { return _to GetDescription(aDescription); } \
  62.   NS_IMETHOD GetFilename(nsAString & aFilename) { return _to GetFilename(aFilename); } \
  63.   NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
  64.   NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
  65.   NS_IMETHOD Item(PRUint32 index, nsIDOMMimeType **_retval) { return _to Item(index, _retval); } \
  66.   NS_IMETHOD NamedItem(const nsAString & name, nsIDOMMimeType **_retval) { return _to NamedItem(name, _retval); } 
  67.  
  68. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  69. #define NS_FORWARD_SAFE_NSIDOMPLUGIN(_to) \
  70.   NS_IMETHOD GetDescription(nsAString & aDescription) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDescription(aDescription); } \
  71.   NS_IMETHOD GetFilename(nsAString & aFilename) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFilename(aFilename); } \
  72.   NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  73.   NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
  74.   NS_IMETHOD Item(PRUint32 index, nsIDOMMimeType **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } \
  75.   NS_IMETHOD NamedItem(const nsAString & name, nsIDOMMimeType **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->NamedItem(name, _retval); } 
  76.  
  77. #if 0
  78. /* Use the code below as a template for the implementation class for this interface. */
  79.  
  80. /* Header file */
  81. class nsDOMPlugin : public nsIDOMPlugin
  82. {
  83. public:
  84.   NS_DECL_ISUPPORTS
  85.   NS_DECL_NSIDOMPLUGIN
  86.  
  87.   nsDOMPlugin();
  88.  
  89. private:
  90.   ~nsDOMPlugin();
  91.  
  92. protected:
  93.   /* additional members */
  94. };
  95.  
  96. /* Implementation file */
  97. NS_IMPL_ISUPPORTS1(nsDOMPlugin, nsIDOMPlugin)
  98.  
  99. nsDOMPlugin::nsDOMPlugin()
  100. {
  101.   /* member initializers and constructor code */
  102. }
  103.  
  104. nsDOMPlugin::~nsDOMPlugin()
  105. {
  106.   /* destructor code */
  107. }
  108.  
  109. /* readonly attribute DOMString description; */
  110. NS_IMETHODIMP nsDOMPlugin::GetDescription(nsAString & aDescription)
  111. {
  112.     return NS_ERROR_NOT_IMPLEMENTED;
  113. }
  114.  
  115. /* readonly attribute DOMString filename; */
  116. NS_IMETHODIMP nsDOMPlugin::GetFilename(nsAString & aFilename)
  117. {
  118.     return NS_ERROR_NOT_IMPLEMENTED;
  119. }
  120.  
  121. /* readonly attribute DOMString name; */
  122. NS_IMETHODIMP nsDOMPlugin::GetName(nsAString & aName)
  123. {
  124.     return NS_ERROR_NOT_IMPLEMENTED;
  125. }
  126.  
  127. /* readonly attribute unsigned long length; */
  128. NS_IMETHODIMP nsDOMPlugin::GetLength(PRUint32 *aLength)
  129. {
  130.     return NS_ERROR_NOT_IMPLEMENTED;
  131. }
  132.  
  133. /* nsIDOMMimeType item (in unsigned long index); */
  134. NS_IMETHODIMP nsDOMPlugin::Item(PRUint32 index, nsIDOMMimeType **_retval)
  135. {
  136.     return NS_ERROR_NOT_IMPLEMENTED;
  137. }
  138.  
  139. /* nsIDOMMimeType namedItem (in DOMString name); */
  140. NS_IMETHODIMP nsDOMPlugin::NamedItem(const nsAString & name, nsIDOMMimeType **_retval)
  141. {
  142.     return NS_ERROR_NOT_IMPLEMENTED;
  143. }
  144.  
  145. /* End of implementation class template. */
  146. #endif
  147.  
  148.  
  149. #endif /* __gen_nsIDOMPlugin_h__ */
  150.